//
//  CartoonCycleImageModel.m
//  __PRODUCTNAME__
//
//  Created by Gollum on 16/09/24
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "CartoonCycleImageModel.h"
#import "CartoonCycleImageData.h"

@implementation CartoonCycleImageModel

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [CartoonCycleImageData class]};
}

- (void)setValue:(id)value forKey:(NSString *)key{

    NSMutableArray *dataArray = [NSMutableArray array];
    NSArray *valueArray = value;
    if ([key isEqualToString:@"data"]) {
        for (NSDictionary *dic in valueArray) {
            CartoonCycleImageData *data = [CartoonCycleImageData modelWithDic:dic];
            [dataArray addObject:data];
        }
        _data = dataArray;
    }


}


@end
